PrintDocument for WinForms | ComponentOne
C1.Win.PrintPreview.4.5.2 Assembly / C1.Win.C1Preview Namespace / C1PreviewPane Class / Print Method / Print(String,Int32[]) Method
The name of the printer that should be initially selected in the dialog.
The list of selected page numbers. If this parameter is not null, selection option is enabled in the dialog.

In This Topic
    Print(String,Int32[]) Method
    In This Topic
    Shows the standard print dialog, allowing the user to print the currently loaded document.
    Syntax
    'Declaration
     
    Public Overloads Function Print( _
       ByVal printerName As String, _
       ByVal selectedPageNumbers() As Integer _
    ) As Boolean
    public bool Print( 
       string printerName,
       int[] selectedPageNumbers
    )

    Parameters

    printerName
    The name of the printer that should be initially selected in the dialog.
    selectedPageNumbers
    The list of selected page numbers. If this parameter is not null, selection option is enabled in the dialog.

    Return Value

    True if the user pressed OK in the dialog, false if the user cancelled the dialog.
    Remarks
    If an exception occurs, the error message is shown, and false is returned.
    See Also